﻿
using System;
using System.Linq;
using System.Collections.Generic;
using System.Xml.Linq;
using Game;
namespace ApiToolkit
{
	public static class StringExtends
	{
		public static bool Contains_(this string str, char value)
		{
			return str.IndexOf(value) > 0;
		}
		public const string base10 = "0123456789";
		public static int ToInt32(this string str)
		{
			return int.Parse(str);
		}
		public static bool TryConvertToInt32(this string str,out int result)
		{
			try
			{
				result = int.Parse(str);
				return true;
			}
			catch
			{
				result = int.MinValue;
			}
			return false;
		}

	}
}